package com.github.wisdom.common.github.modules.fegin;


import com.github.wisdom.common.github.modules.entity.ObjectStorageVerification;
import com.github.wisdom.common.github.modules.fegin.fallback.CommonFeignErrorDecoder;
import com.github.wisdom.common.github.modules.fegin.fallback.MetaObjectServiceFallbackImpl;
import com.github.wisdom.common.github.modules.util.ReturnEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "m8-upms-service", configuration = CommonFeignErrorDecoder.class, fallback = MetaObjectServiceFallbackImpl.class)
public interface MetaObjectService {

	@PostMapping("/object/Storage/verifications")
	public ReturnEntity<ObjectStorageVerification> verifications(@RequestBody ObjectStorageVerification object);
	
}
